<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of AjaxChatLogger
 *
 * @author owner
 */
class AjaxChatLogger {
 
    function log($msg)
    {
        $logFile = ".\AjaxChat.log";

        // open file
        $fd = fopen($logFile, "a");

        $str = "[" . date("Y/m/d h:i:s", mktime()) . "] " . $msg;

        // write string
        fwrite($fd, $str . "\n");

        fclose($fd);
    }

}
?>
